@echo off
:: MXSPLI-ShareMX
:: MixSoft Programming Language Interpreter
:: Version v2_ShareMXv2
:: Developers: Mihail Mojsoski
set function=%~1
set library=FileSystem
if "%function%"=="FILESYSTEM_CHDIR" goto chdir
if "%function%"=="FILESYSTEM_LIST" goto dir
if "%function%"=="FILESYSTEM_PRINT" goto type
if "%function%"=="FILESYSTEM_RMDIR" goto rmdir
if "%function%"=="FILESYSTEM_RENAME" goto rename
if "%function%"=="FILESYSTEM_DELETE" goto delete
if "%function%"=="FILESYSTEM_COPY" goto copy
if "%function%"=="FILESYSTEM_MOVE" goto move
if "%function%"=="FILESYSTEM_WRITE" goto write
echo %LNG_ATLINE% %line%: %LNG_UNKFC% "%function%" %LNG_INLIB% %library%.
if "%debug%"=="1" echo %LNG_ATLINE% %line%: %LNG_UNKFC% "%function%" %LNG_INLIB% %library%. >> "%mypath%\%debugpath%"
goto end

:write
set var=%~2
call set var=%%%var%%%
if "%var%"=="" set var=%~2
echo %var%>%~3
goto end

:dir
dir
goto end

:type
type "%~2"
goto end

:rmdir
rmdir "%~2"
goto :end

:rename
rename "%~2" "%~3"
goto end

:delete
del "%~2"
goto end

:copy
copy "%~2" "%~3"
goto end

:move
move "%~2" "%~3"
goto end

:chdir
cd %~2
goto end

:end